package com.yc.hr.ui;

import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JPanel;

import com.yc.hr.util.UIUtils;

public class MyDIalog extends JDialog {
	public MyDIalog() {
	}
	
	private static final long serialVersionUID = 1L;
	
	protected final JPanel contentPanel = new JPanel() {
		
		private static final long serialVersionUID = 1L;

		protected void paintComponent(java.awt.Graphics g) {
			UIUtils.paintComponent(g, this,"f:/bg.jpg");
			
			ImageIcon icon = new ImageIcon("f:/head.png");
	        Image image = icon.getImage();
	        g.drawImage(image, 10, 10, 60, 60, this);
			
		};
	};

}
